import 'package:city_corner/commons/global-var.dart';
import 'package:city_corner/main-page/filter-panel/local-panel/index.dart';
import 'package:city_corner/main-page/filter-panel/rent-panel/index.dart';
import 'package:flutter/material.dart';

class DropDownPanel extends StatefulWidget {
  final String curOpt;
  DropDownPanel({this.curOpt});

  @override
  State<StatefulWidget> createState() => _DropDownPanel();
}

class _DropDownPanel extends State<DropDownPanel> {
  Map<String, Widget> panelList = {"local": LocalPanel(), 'rent': RentPanel()};

  @override
  Widget build(BuildContext context) {
    return Container(
        width: mediaSize(context).width,
        height: widgetHeight['houseList'],
        color: Colors.white,
        child: panelList[widget.curOpt]);
  }
}
